import static griffon.util.GriffonApplicationUtils.*

actions {
   action( id: 'exitAction',
      name: isMacOSX ? "Quit" : "Exit",
      closure: controller.exit,
      mnemonic: isMacOSX ? 'Q' : 'X',
      accelerator: shortcut(isMacOSX ? 'Q' : 'X'),
      smallIcon: imageIcon("org/tango-project/tango-icon-theme/16x16/actions/system-log-out.png")
   )
   action( id: 'searchAction',
      name: "Search",
      closure: controller.search,
      mnemonic: 's',
      accelerator: shortcut('s'),
      smallIcon: imageIcon("org/tango-project/tango-icon-theme/16x16/actions/system-search.png")
   )
   action( id: 'indexAction',
      name: "Index",
      description: 'Index the songs on the ipod... will re-create index if it already exists!',
      closure: controller.index,
      mnemonic: 'i',
      accelerator: shortcut('i'),
      smallIcon: imageIcon("org/tango-project/tango-icon-theme/16x16/actions/view-refresh.png")
   )
   action( id: 'downloadAction',
      name: "Download",
      closure: controller.downloadSelection,
      mnemonic: 'd',
      accelerator: shortcut('d'),
      smallIcon: imageIcon("org/tango-project/tango-icon-theme/16x16/actions/document-save.png")
   )
   action( id: 'deleteAction',
       name: "Delete",
       closure: controller.deleteSelection,
       mnemonic: 'delete',
       accelerator: shortcut('delete'),
       smallIcon: imageIcon("org/tango-project/tango-icon-theme/16x16/actions/edit-delete.png")
    )
}